<?php /* Smarty version Smarty-3.1.8, created on 2014-08-29 14:51:40
         compiled from "C:\wamp\www\framework\maquinado\views\index\cta.tpl" */ ?>
<?php /*%%SmartyHeaderCode:263175400937c07e1d3-33103490%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '2c5154f202de02800ced06264e41bcffe5d23bd0' => 
    array (
      0 => 'C:\\wamp\\www\\framework\\maquinado\\views\\index\\cta.tpl',
      1 => 1404838411,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '263175400937c07e1d3-33103490',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'tabla' => 0,
    'curr_tabla' => 0,
    'm_req' => 0,
    'h_req' => 0,
    't_re8' => 0,
    't_re9' => 0,
    'cta' => 0,
    'min' => 0,
    'horas' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5400937c1bdb99_74517128',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5400937c1bdb99_74517128')) {function content_5400937c1bdb99_74517128($_smarty_tpl) {?><table width="100%">
    <tr>
        <th>Producto</th>
        <th>CTA</th>
        <th>Maquina</th>
        <th>Minutos</th>
        <th>Horas</th>
        <th>Turnos 8hrs</th>
        <th>Turnos 9hrs</th>
    </tr>
    <?php $_smarty_tpl->tpl_vars['cta'] = new Smarty_variable(0, null, 0);?><?php $_smarty_tpl->tpl_vars['min'] = new Smarty_variable(0, null, 0);?>
    <?php  $_smarty_tpl->tpl_vars['curr_tabla'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['curr_tabla']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['tabla']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['curr_tabla']->key => $_smarty_tpl->tpl_vars['curr_tabla']->value){
$_smarty_tpl->tpl_vars['curr_tabla']->_loop = true;
?>
    <?php if ($_smarty_tpl->tpl_vars['curr_tabla']->value['cta']>0){?>
    <?php $_smarty_tpl->tpl_vars['m_req'] = new Smarty_variable(($_smarty_tpl->tpl_vars['curr_tabla']->value['Minutos1maquinado'])+($_smarty_tpl->tpl_vars['curr_tabla']->value['min']*$_smarty_tpl->tpl_vars['curr_tabla']->value['cta']-1), null, 0);?>
    <?php if ($_smarty_tpl->tpl_vars['m_req']->value<0){?>
    <?php $_smarty_tpl->tpl_vars['m_req'] = new Smarty_variable(0, null, 0);?>
    <?php }?>
    <?php $_smarty_tpl->tpl_vars['h_req'] = new Smarty_variable(round(($_smarty_tpl->tpl_vars['m_req']->value/60),1), null, 0);?>
    <?php $_smarty_tpl->tpl_vars['t_re8'] = new Smarty_variable(round(($_smarty_tpl->tpl_vars['h_req']->value/8),1), null, 0);?>
    <?php $_smarty_tpl->tpl_vars['t_re9'] = new Smarty_variable(round(($_smarty_tpl->tpl_vars['h_req']->value/9),1), null, 0);?>
    <tr>
        <td title="Producto"><?php echo $_smarty_tpl->tpl_vars['curr_tabla']->value['producto'];?>
</td>
        <td title="CTA"><?php echo $_smarty_tpl->tpl_vars['curr_tabla']->value['cta'];?>
</td>
        <td title="Maquina"><?php echo $_smarty_tpl->tpl_vars['curr_tabla']->value['maq'];?>
</td>
        <td title="Minutos"><?php echo $_smarty_tpl->tpl_vars['m_req']->value;?>
</td>
        <td title="Horas"><?php echo $_smarty_tpl->tpl_vars['h_req']->value;?>
</td>
        <td title="Turnos 8h"><?php echo $_smarty_tpl->tpl_vars['t_re8']->value;?>
</td>
        <td title="Turnos 9h"><?php echo $_smarty_tpl->tpl_vars['t_re9']->value;?>
</td>
    </tr>
    <?php $_smarty_tpl->tpl_vars['cta'] = new Smarty_variable($_smarty_tpl->tpl_vars['cta']->value+$_smarty_tpl->tpl_vars['curr_tabla']->value['cta'], null, 0);?>
    <?php $_smarty_tpl->tpl_vars['min'] = new Smarty_variable($_smarty_tpl->tpl_vars['min']->value+$_smarty_tpl->tpl_vars['m_req']->value, null, 0);?>
    <?php }?>
    <?php } ?>
    <?php $_smarty_tpl->tpl_vars['horas'] = new Smarty_variable(round(($_smarty_tpl->tpl_vars['min']->value/60),1), null, 0);?>
    <tr>
        <th>TOTAL</th>
        <th><?php echo number_format($_smarty_tpl->tpl_vars['cta']->value);?>
</th>
        <th>&nbsp;</th>
        <th><?php echo number_format($_smarty_tpl->tpl_vars['min']->value);?>
 minutos</th>
        <th><?php echo $_smarty_tpl->tpl_vars['horas']->value;?>
 horas</th>
        <th><?php echo round(($_smarty_tpl->tpl_vars['horas']->value/8),1);?>
 turnos de 8h</th>
        <th><?php echo round(($_smarty_tpl->tpl_vars['horas']->value/9),1);?>
 turnos de 9h</th>
    </tr>
</table><?php }} ?>